// vue.config.js解决前后端分离项目跨域问题
module.exports = {
    devServer: {
      proxy: {
        '/user': {
          target: 'http://localhost:8084', // 后端服务器的地址
          changeOrigin: true,  
          pathRewrite: {
            '^/user': ''  
          }
        }
      }
    }
  };


  //地图配置
  import { createSvgIconsPlugin } from 'vite-plugin-svg-icons';
import path from 'path';

export default {
  plugins: [
    createSvgIconsPlugin({
      iconDirs: [path.resolve(process.cwd(), 'src/assets/icons')],
      symbolId: 'icon-[dir]-[name]'
    })
  ]
}

  